package com.itheima.d10_api_object;

import com.itheima.d10_api_object.bean.Student;
import com.itheima.d10_api_object.bean.User;

import java.util.Objects;

/*
    Object的toString，equals方法使用
 */
public class Test1 {
    public static void main(String[] args) {
        // 目标：掌握Object类提供的常用方法。
        User user = new User();
        System.out.println(user.toString());

        User user1 = new User();
        System.out.println(Objects.equals(user, user1));


    }
}












